#ifndef _BULLET_H_
#define _BULLET_H_

#include "Object.h"

#define POWERUP_VX	0.1
#define GRAVITY		0.01



class Bullet : public Object
{
	//Object* container;				//object chua item, mac dinh item k hien len

	float _xOld;
	float _yOld;

	float _vx;
	float _vy;

	float _accelY;

	

	float timeExplosion;

	
public:
	Bullet(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, bool isLeft);
	~Bullet();

	void Render();
	void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);
	 
	void Move(float TPF,list<Object*>* staObjs,list<Object*>* dynObjs);

	OBJECT_TYPE GetTypeObject();
	void ResetRect();
	void ChangeState(int state);
};

#endif